package com.yida.gwj.expend.controller;

import com.yida.common.core.web.page.TableDataInfo;
import com.yida.gwj.expend.domain.request.GwjOldSystemQueryRequest;
import com.yida.gwj.expend.service.IGwjOldSystemService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author: PPV
 * @Date: 2023-03-15
 */
@RestController
@RequestMapping("/expend/old")
@Api(tags = "公维金旧系统")
public class GwjOldSystemController {

    @Resource
    private IGwjOldSystemService oldSystemService;

    @PostMapping("/listFund")
    @ApiOperation("查询维修资金使用分户")
    public TableDataInfo getMaintenanceFundSplit(@RequestBody GwjOldSystemQueryRequest request) {
        return oldSystemService.getMaintenanceFundSplit(request);
    }

    //@PostMapping("/listExpend")
    //@ApiOperation("查询公维金支出")
    //public TableDataInfo getGwjExpenditure(@RequestBody GwjOldSystemQueryRequest request) {
    //    return oldSystemService.getGwjExpenditure(request);
    //}

}
